{include file='public/head'}
<style>
    .layer-photos-demo img{
        cursor:pointer;
        height: 100px;
        width: 100px;
    }
</style>
<body>
<div class="x-body">
    <table class="layui-table">
        <colgroup>
            <col width="150">
            <col>
        </colgroup>
        <tbody>
        <tr>
            <td>账单金额</td>
            <td>￥{$info.money}</td>
        </tr>
        <tr>
            <td>操作日期</td>
            <td>{$info['operate_date']|date="Y-m-d",###}</td>
        </tr>
        <tr>
            <td>账单说明</td>
            <td>{$info.reason}</td>
        </tr>
        <tr>
            <td>账单分类</td>
            <td>
                {switch name="info.project" }
                {case value="1"}充值{/case}
                {case value="2"}支出{/case}
                {case value="3"}采购{/case}
                {case value="4"}运费{/case}
                {default /}其他
                {/switch}
            </td>
        </tr>
        <tr>
            <td>审核状态</td>
            <td>
                {switch name="info.audit" }
                {case value="1"}<b style="color: blue">未审核</b>{/case}
                {case value="2"}<b style="color: green">已审核</b>{/case}
                {case value="3"}<b style="color: red">未通过</b>{/case}
                {/switch}
            </td>
        </tr>
        <tr>
            <td>创建时间</td>
            <td>{$info['timestamp']|date="Y-m-d H:i:s",###}</td>
        </tr>
        <tr>
            <td>备注</td>
            <td>{$info.remark}</td>
        </tr>
        <tr>
            <td>账单创建人员</td>
            <td>{$info.operate_truename}</td>
        </tr>
        <tr>
            <td colspan="2" style="text-align: center;background-color: #F2F2F2">采购信息</td>
        </tr>
        <tr>
            <td rowspan="2">
                {if empty($purchase['url'])}
                <img src="__images__/noimg.png">
                {else/}
                <img src="{$purchase['url']}" onclick="previewImg(this)">
                {/if}
            </td>
            <td><a href="{$purchase.fromUrl}" style="color: #01AAED;" target="_blank">{$purchase.title}</a></td>
        </tr>
        <tr>
            <td>
                货币单位:{$purchase.unit}
                找货总价<span style="color: #5FB878">{$purchase.total}</span>
                +运费<span style="color: #5FB878">{$purchase.fee}</span>
                -优惠<span style="color: #5FB878">{$purchase.discounts}</span>
                =<span style="color: #1E9FFF">{$purchase.total+$purchase.fee-$purchase.discounts}</span>
            </td>
        </tr>
        <tr>
            <td>找货订单号</td>
            <td>{$purchase.order_no}</td>
        </tr>
        <tr>
            <td>物流追踪号</td>
            <td>{$purchase.logistics}</td>
        </tr>
        <tr>
            <td>当前状态</td>
            <td>
                {switch name="purchase.overdue" }
                {case value="1"}待采购{/case}
                {case value="2"}采购中{/case}
                {case value="3"}采购完{/case}
                {/switch}
            </td>
        </tr>
        <tr>
            <td>支付账号</td>
            <td>{$purchase.account}</td>
        </tr>
        <tr>
            <td>支付凭证号</td>
            <td>{$purchase.voucher}</td>
        </tr>
        <tr>
            <td>找货附加说明</td>
            <td>{$purchase.explain}</td>
        </tr>
        </tbody>
    </table>
</div>
</body>
{include file='public/foot'}
</html>
